package com.ljh.controller;


import com.ljh.pojo.Admin;
import com.ljh.service.IAdminService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author ZSJia
 * @date 2021/8/22 022 - 13:29
 */
@RestController
@RequestMapping("/chat")
public class ChatController {
    @Autowired
    private IAdminService adminService;
    @ApiOperation(value = "获取所有操做员")
    @GetMapping
    public List<Admin> findListAdmin(String  keyword){
        return adminService.getAllAdmin(keyword);
    }
}
